package com.zzw.spring.processor;



//1.参考原生Spring容器定义一个接口
//2.该接口有两个方法postProcessBeforeInitialization,postProcessAfterInitialization

/**
 * 说明：
 * 1.postProcessBeforeInitialization在Bean的初始化方法之前调用
 * 2.postProcessAfterInitialization在Bean的初始化之后之后调用
 * 3.这两个方法，会对所有Spring容器的所有Bean生效，已经是切面编程的概念了
 */
public interface BeanPostProcessor {
    default Object postProcessBeforeInitialization(Object bean,String beanName){
        return bean;
    }
    default Object postProcessAfterInitialization(Object bean,String beanName){
        return bean;
    }
}
